<template>
    <div>
        <h2>TsHome</h2>
        <button @click="emit('change', 'change data')">change</button>
        <button @click="emit('save')">save</button>
        <button @click="emit('update')">update</button>

        <slot></slot>
    </div>
</template>
<script setup>
const emit = defineEmits(['change', 'update', 'save']);
</script> 